package com.systop.dxjj.modules.recruitinfo.mapper;

import com.systop.dxjj.common.pojo.Recruitinfo;
import com.systop.dxjj.common.pojo.RecruitinfoVO;
import com.systop.dxjj.common.pojo.Teacher;
import com.systop.dxjj.common.utils.R;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecruitinfoMapper {
    //查询全部
    List<RecruitinfoVO> getAllRecruitinfo();

    //根据id查询
    List<RecruitinfoVO> getRecruitinfoById(Integer teachid);

    //根据姓名查询
    RecruitinfoVO getRecruitinfoByName(String teachname);

    //删除
    int deleteRecruitinfoById(Integer recruitid);

    //编写招聘信息
    int addRecruitinfo(@Param("recruitinfo") Recruitinfo recruitinfo);

    //通过recruitid查询teachid
    Integer getTeachidByRecruitid(Integer recruitid);

}
